package com.camemax.rabbitmq.direct_mode;

import com.camemax.rabbitmq.utils.PublisherModules;

public class DirectMode_Publisher {
    public static void main(String[] args) {
        String exchangeName = "direct-exchange";
        String routingKey01 = "direct-rk01";
        String routingKey02 = "direct-rk02";
        String routingKey03 = "direct-rk03";
        String message01 = "Publisher sends message to RoutingKey: "+routingKey01;
        String message02 = "Publisher sends message to RoutingKey: "+routingKey02;
        String message03 = "Publisher sends message to RoutingKey: "+routingKey03;
        new PublisherModules().publishMessage(exchangeName, routingKey01, null, message01);
        new PublisherModules().publishMessage(exchangeName, routingKey02, null, message02);
        new PublisherModules().publishMessage(exchangeName, routingKey03, null, message03);
    }
}
